﻿using UnityEngine;

namespace Koroutine.Runtime.Condition
{
    public class DelayForSecondRealtime : ICondition
    {
        private float _beginTime;
        private float _delaySecond;

        public DelayForSecondRealtime(float delaySecond)
        {
            _delaySecond = delaySecond;
            
            _beginTime = Time.realtimeSinceStartup;
        }

        public bool Check()
        {
            return _beginTime + _delaySecond <= Time.realtimeSinceStartup;
        }

        public void Update()
        {
            
        }
    }
}